<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <script type="text/javascript" src="http://127.0.01/jmshop/Static/js/jquery-1.7.2.min.js"></script>
    <link rel="stylesheet" href="http://127.0.01/jmshop/Static/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="http://127.0.01/jmshop/Static/hdjs/hdjs.css">
    <script type="text/javascript" src="http://127.0.01/jmshop/Static/hdjs/hdjs.min.js"></script>
    
</head>
<body>
<div class="wrap">
    <div class="hd-title-header">修改子分类</div>
    <form action="" method="post" class="form-inline hd-form">
        <table class="hd-table hd-table-form hd-form">
            <tr>
                <th class="w100">分类名称</th>
                <td  class="w100">
                    <input type="text" name="cname" class="w200" value="<?php echo $oldData['cname'];?>" /> 
                </td>
                <td>分类名称长度 1 到 20 位</td>
            </tr>
            <tr>
                <th class="w100">分类排序</th>
                <td  class="w100">
                    <input type="text" name="sort" class="w200" value="<?php echo $oldData['sort'];?>"/> 
                </td>
                <td>填写1-255位的数字</td>
            </tr>
            <tr>
                <th class="w100">所属类型</th>
                <td>
                   <select name="shop_type_tid" id="">
                    <?php foreach ($typeData as $k=>$v){?>
                       <option value="<?php echo $v['tid'];?>"><?php echo $v['tname'];?></option>
                    <?php }?>
                   </select>
                </td>
            </tr>
        </table>
        <div class="position-bottom">
            <input type="text" name="cid" value="<?php echo $hd['get']['cid'];?>" />
            <input type="submit" class="hd-btn hd-btn-success" value="修改子分类"/>
        </div>
    </form>
</div>
</body>
</html>